# app info
WTF_CSRF_ENABLED = True
SECRET_KEY = '\x80\xaaAwFa\x0baoslkfsijf@oas9uq-e5ksad'
SQLALCHEMY_TRACK_MODIFICATIONS = True

# 外网访问
OUTSIDE_HOST = '0.0.0.0'
OUTSIDE_PORT = 80


# db info
# mysql
# MYSQL_HOST = 'mysql_service'
# MYSQL_HOST = '10.0.0.2'
MYSQL_HOST = 'mysql'
MYSQL_USER_NAME = 'jzb'
MYSQL_PASSWD = 'jzb'
# MYSQL_PORT = 23776
MYSQL_PORT = 3306
MYSQL_DB = 'jzbdb'

SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8' \
         ''.format(MYSQL_USER_NAME, MYSQL_PASSWD, MYSQL_HOST, MYSQL_PORT, MYSQL_DB)

# missing key
keys = ['csrf_token', 'user-date', 'sumit']

# 每页数量
PER_PAGE_NUMBER = 20
